
#include_directories(${CMAKE_SOURCE_DIR}/SM ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )


########### next target ###############

add_executable(sm
    AbstractLp.cpp
    CClientSM.cpp
    CorbaSM.cpp
    SM.cpp
    Scheduler.cpp
    TaxiStandMeFactory.cpp
    corbaAddressServer.cpp
    corbaMessageHandler.cpp
    customerArrival.cpp
    customerArrivalInterpreter.cpp
    customerSource.cpp
    customerSourceMeFactory.cpp
    factories.cpp
    gvtStats.cpp
    help.cpp
    lvtBased.cpp
    lvtBasedSchedFactory.cpp
    message.cpp
    modelentity.cpp
    random.cpp
    randomSchedFactory.cpp
    rollbackableLp.cpp
    rollbackableLpFactory.cpp
    roundRobin.cpp
    roundRobinSchedFactory.cpp
    smRun.cpp
	smSetup.cpp
    sourceLp.cpp
    sourceLpFactory.cpp
    submodelManager.cpp
    taxiArrival.cpp
    taxiArrivalInterpreter.cpp
    taxiStand.cpp
    taxiStandRollbackableAdapter.cpp
    taxiStandSqtwAdapter.cpp
    taxiStandSqtwAdapterFactory.cpp
    taxistandRollbackableAdapterFactory.cpp
    vectorBuffer.cpp
    vectorInQueue.cpp
    vectorOutQueue.cpp
../tools/mycorba.cpp
)

#kde4_add_executable(sm ${sm_SRCS})

target_link_libraries(sm boost_thread-mt boost_program_options-mt omniORB4)

#install(TARGETS sm ${INSTALL_TARGETS_DEFAULT_ARGS})


########### install files ###############




#original Makefile.am contents follow:

#INCLUDES = -I$(top_srcdir)/SM
#METASOURCES = AUTO
#bin_PROGRAMS = sm
#sm_SOURCES = AbstractLp.cpp CClientSM.cpp CorbaSM.cpp SM.cpp Scheduler.cpp \
#	TaxiStandMeFactory.cpp corbaAddressServer.cpp corbaMessageHandler.cpp customerArrival.cpp \
#	customerArrivalInterpreter.cpp customerSource.cpp customerSourceMeFactory.cpp factories.cpp \
#	gvtStats.cpp help.cpp lvtBased.cpp lvtBasedSchedFactory.cpp message.cpp \
#	modelentity.cpp random.cpp randomSchedFactory.cpp rollbackableLp.cpp \
#	rollbackableLpFactory.cpp roundRobin.cpp roundRobinSchedFactory.cpp smRun.cpp sourceLp.cpp \
#	sourceLpFactory.cpp submodelManager.cpp taxiArrival.cpp taxiArrivalInterpreter.cpp \
#	taxiStand.cpp taxiStandRollbackableAdapter.cpp taxiStandSqtwAdapter.cpp \
#	taxiStandSqtwAdapterFactory.cpp taxistandRollbackableAdapterFactory.cpp vectorBuffer.cpp \
#	vectorInQueue.cpp vectorOutQueue.cpp
#noinst_HEADERS = AbstractLp.h CClientSM.h CorbaSM.h CustomerArrival.h \
#	LvtBasesSchedFactory.h Scheduler.h TaxiStandMeFactory.h abstractAdFactory.h abstractAdapter.h \
#	abstractLpFactory.h abstractMeFactory.h abstractSchedFactory.h addressServer.h \
#	corbaAddressServer.h corbaMessageHandler.h customerArrivalInterpreter.h customerSource.h \
#	customersSouceMeFactory.h factories.h gvtStats.h inQueue.h interpreter.h lvtBased.h memento.h \
#	message.h messageContainer.h messageHandler.h message_interface.h modelentity.h \
#	proxy.h random.h randomSchedFactory.h rollbackableAdapter.h rollbackableLp.h \
#	rollbackableLpFactory.h roundRobinSchedFactory.h roundrobin.h smOutput.h smRun.h source.h \
#	sourceLPFactory.h sourceLp.h sourceLpFactory.h sqtwAdapter.h submodelManager.h \
#	taxiArrivalInterpreter.h taxiStand.h taxiStandRollbackableAdapter.h taxiStandSqtwAdapter.h \
#	taxistandRollbackableAdapterFactory.h taxistandSqtwAdapterFactory.h taxtArrival.h vectorBuffer.h \
#	vectorInQueue.h vectorOutQueue.h
#sm_LDADD = -lboost_thread-mt -lboost_program_options-mt -lomniORB4
